<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    body {
      margin: 0;
    }
    div {
      border: 1px solid red;
      margin: 20px;
      padding: 20px;
    }
    .pos {
      position: relative;
      left: 20px;
      top: 20px;
    }
    .abs {
      position: absolute;
      background-color: orange;
      right: 20px;
      bottom: 20px;
      margin: 0;
    }
    .parent {
      position: relative;
      border: 4px solid blue;
      height: 600px;
    }
    .fix {
      position: fixed;
      margin: 0;
      background-color: blueviolet;
      color: #FFF;
      left: 50%;
      top: 50%;
      transform: translate(-45px, -30px);
    }
  </style>
</head>
<body>
  <div>hehelow</div>
  <div>hehelow</div>
  <div class="parent">
    parent
    <div class="abs">absolute</div>
  </div>
  
  <div>hehelow</div>
  <div class="pos">relative</div>
  <div>hehelow</div>
  <div class="fix">fixed</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
  <div>hehelow</div>
</body>
</html>